package com.link2room.aeriabots.service.impl;

import com.link2room.aeriabots.dto.param.inside.WebPaymentInsideParamDto;
import com.link2room.aeriabots.service.IPayNotifyService;
import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.common.redis.RedisUtil;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by LN on 2016/12/8.
 */
@Component("payNotifyService")
public class PayNotifyServiceImpl implements IPayNotifyService {
    @Resource
    private RedisUtil redisUtil;


    @Override
    public BaseResultDto webPayment(String serviceCode ,WebPaymentInsideParamDto paramDto) throws Exception {
        //TODO 弃用？
        return null;
        /*L2RAssert.stringBlank(serviceCode,"[serviceCode] is null");
        String uri = (String) redisUtil.get(serviceCode);
        L2RAssert.stringBlank(uri , "[uri]");
        BaseResultDto res = ribbonUtil.ribbonPostForDto(uri, paramDto, WebPaymentInsideParamDto.class);
        return res;*/
    }
}
